package com.xyh.system.service;

import com.xyh.system.model.Dept;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author kyle
 * @since 2021-01-05
 */
public interface IDeptService extends IService<Dept> {

    /**
     * 获取所有部门树
     */
    Object selectAllDeptTree();


    List<Dept> selectChildDeptByParentId(Integer parentId);

    boolean insert(Dept dept);
}
